<template>
  <div class="user-photo">
    <div class="user-photo-item">
      <van-cell-group>
        <van-field
          v-model="value"
        />
      </van-cell-group>
      <van-field
        v-model="sms"
        center
        clearable
      >
        <template #button>
          <van-button
            size="small"
            type="primary"
            @click="fason"
          >获取验证码</van-button>
        </template>
      </van-field>
    </div>
  </div>
</template>
<script>
import axios from "axios"
import qs from 'qs'
export default {
  data() {
    return {
      value: 17397241971,
      sms:'',
      token:localStorage.token
    }
  },
  methods:{
     async fason(){
       
        await axios.post(`https://api.java.crmeb.net/api/front/sendCode?Content-Type=${this.token}&phone=${this.value}`,{
          
         
           
}).then(res=>{
          console.log(res);
        })
      }
  }
}
</script>
<style lang="scss" scoped>
.user-photo-item{
  border: 1px solid #000;
  margin-top: 100px;
}
</style>